﻿using Sidvall.WorkItemManager.UI.Entities;
using System.Threading.Tasks;

namespace Sidvall.WorkItemManager.Web.Host.Models
{
	public class WorkItemsModel
	{
		#region Public Members

		public WorkItemCollection WorkItems { get; set; }

		#region LoadAsync

		public async Task LoadAsync()
		{
			this.WorkItems = await Sidvall.WorkItemManager.UI.SystemContext.Current.DataPortal.WorkItemManager.GetItemsAsync();
		}

		#endregion

		#endregion
		#region Constructors

		public WorkItemsModel()
		{
		}

		#endregion
	}
}